﻿@using Webdiyer.WebControls.Mvc;
@model PagedList<Inspinia_MVC5.Models.Student>

@{
    ViewBag.Title = "学生管理";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-4">
        <h2>学生信息管理</h2>
        <ol class="breadcrumb">
            <li class="active">
                <strong>学生</strong>
            </li>
        </ol>
    </div>
</div>


<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>学生信息管理</h5>
                    <div class="ibox-tools">
                        @Html.ActionLink("新增学生用户", "Create", null, new { @class = "btn btn-primary btn-xs" })
                    </div>
                </div>
                <div class="ibox-content" style="overflow:hidden;">
                    @*<form role="form" method="get" action="/Students/Index" class="form-inline" style="float:left">
            <div class="form-group">
                <label for="exampleInputEmail2" class="sr-only">学生姓名：</label>
                <input type="text" name="name" placeholder="读者姓名" id="exampleInputEmail2" class="form-control">
            </div>
            <button class="btn btn-white" type="submit">检索</button>
        </form>*@
                    @using (Ajax.BeginForm("Index", "Students", new AjaxOptions { UpdateTargetId = "articles" }, new { @class = "form-inline", style = "float:left" }))
                    {
                        <div class="input-group">
                            <input type="text" name="name" placeholder="学生姓名" id="exampleInputEmail2" class="form-control"> <span class="input-group-btn">
                                <button type="submit" class="btn btn-primary">
                                    搜索
                                </button>
                            </span>
                        </div>
                    }

                    @using (Ajax.BeginForm("Index", "Students", new AjaxOptions { UpdateTargetId = "articles" }, new { @class = "form-inline", style = "float:left;margin-left:50px;" }))
                    {
                        <div class="input-group">
                            <input type="text" name="idcard" placeholder="身份证号" id="exampleInputEmail2" class="form-control"> <span class="input-group-btn">
                                <button type="submit" class="btn btn-primary">
                                    搜索
                                </button>
                            </span>
                        </div>
                    }
                    @*<form role="form" method="get" action="/Students/Index" class="form-inline" style="float:left;padding-left:40px;">
                        <div class="form-group">
                            <label for="exampleInputPassword2" class="sr-only">身份证号：</label>
                            <input type="text" name="idcard" placeholder="身份证号" id="exampleInputPassword2" class="form-control">
                        </div>
                        <button class="btn btn-white" type="submit">检索</button>
                    </form>*@
                </div>
                <div class="ibox-content">
                    <div id="articles">
                        @Html.Partial("_StudentList", Model)
                    </div>
                    @section scripts
{
                        @{Html.RegisterMvcPagerScriptResource();}
                <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
                    }


                </div>
            </div>
        </div>
    </div>
</div>



